<?php
/**
 * 获取游记列表
 */
class BlogSideListWidget extends Widget {
    public function render($data) {
        $sql = "select * from ".UHDQ."blog as a left join ".UHDQ."space as b on a.uid=b.uid
               left join ".UHDQ."blogfield as c on a.blogid=c.blogid
               where c.message like '%<img %'
               order by a.dateline desc limit 0,5";
        $data["list"] = M()->query($sql);
        
        $content = $this->renderFile("BlogSideList", $data);
        return $content;
    }
}